"""父类"""
class Person:
    def __init__(self,name = 'Person'):
        self.name = name

"""下面是三个子类"""
#全部继承父类
class Puple(Person):
    pass

#父类init被覆盖了,子类中只添加了age，没有name
class PupleInit(Person):
    def __init__(self,age):
        self.age = age

class PupleSuper(Person):
    def __init__(self,name,age):
        self.age = age
        super().__init__(name)

if __name__ == '__main__':
    pp = Puple()
    pp_i = PupleInit(10)
    pp_a = PupleSuper('jjj',16)

    # print(pp.name)
    # print(pp_i.name)
    print(pp_a.name)